package me.zhao.subscribe.weatherObserver;

public class Client {
	public static void main(String[] args) {
		ConcreateWeatherSubject subject = new ConcreateWeatherSubject();
		
		ConcreateObserver observerGirl = new ConcreateObserver();
		observerGirl.setObserverName("小明女友");
		
		ConcreateObserver observerMom = new ConcreateObserver();
		observerMom.setObserverName("小明妈妈");
		
		subject.attach(observerGirl);
		subject.attach(observerMom);
		
		subject.setWeatherConetent("下雨");
		
		subject.setWeatherConetent("下雪");
		
	}
}
